﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddLeader.ascx.vb" Inherits="WebForm_ManageWorkRecord_AddLeader" %>
<%@ Register Src="~/WebForm/AddControl/SearchUOrganizationControlV2.ascx" TagName="SearchUOrganizationControl"
    TagPrefix="My" %>
<%@ Reference Control="~/WebForm/CommonControl/CalendarTextBox.ascx" %>    
<div align="center">


<asp:UpdatePanel ID="up" runat="server">
    <ContentTemplate>
    <asp:FormView ID="FormView_WorkHeader" runat="server"
        OnItemCommand="FormView_WorkHeader_ItemCommand">
        <ItemTemplate>
            <table>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblUOrganizationID" runat="server" meta:resourcekey="lblUOrganizationID"></asp:Label>
                    </td>
                    <td align="left" colspan="1">
                        <asp:TextBox ID="txtUOrganizationName" runat="server" Enabled="False" Text='<%# Eval("OrganizationName") %>'></asp:TextBox>                        
                    </td>
                    <td align="right">
                        <asp:Label ID="lblVOrganizationID" runat="server" meta:resourcekey="lblVOrganizationID"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtVOrganizationName" runat="server" Enabled="False" Text='<%# Eval("VOrganizationName") %>'></asp:TextBox>
                        <asp:Button ID="btSelect" runat="server" meta:resourcekey="btSelect" CommandName="GetData" />
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblLeaderID" runat="server" meta:resourcekey="lblLeaderID"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtLeaderName" runat="server" Enabled="False" Text='<%# Eval("VolunteerName") %>'></asp:TextBox>
                        <asp:RequiredFieldValidator ID="chk_LeaderName" runat="server" ControlToValidate="txtLeaderName"
                            Display="None" ErrorMessage="<%$ Resources:chk_LeaderName %>" ValidationGroup='<%# Me.ValidationGroup %>' ></asp:RequiredFieldValidator>                        
                    </td>
                    <td align="right">
                        <asp:Label ID="lblLeaderTel" runat="server" meta:resourcekey="lblLeaderTel"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:TextBox ID="txtLeaderTel" runat="server" Enabled="False" Text='<%# Eval("OfficePhone") %>'></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="lblTakeDate" runat="server" meta:resourcekey="lblTakeDate"></asp:Label>
                    </td>
                    <td align="left">
                        <My:CalendarTextBox ID="txtTakeDate" runat="server" Text='<%# Eval("TakeDate") %>' />
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:FormView>
    <My:SearchUOrganizationControl ID="SearchUOrganizationControl1" runat="server" />
<%--    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="BLL_Select" TypeName="BLL_AddWorkHeaderControl">
        <SelectParameters>
            <asp:Parameter Name="WorkHeaderID" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>--%>
    </ContentTemplate>
</asp:UpdatePanel>
</div>
